Pelago\Emogrifier\CssInliner C

Total Complexity 109
Dependencies 6
Dependents 0
Total lines 1,006
Lines of code 405
Logical lines of code 235
Comment lines 465
Methods 40
Properties 12

Methods 40

Method Rating Maintainability Complexity Lines of code
inlineCss()
A
47 8 37
parseCssRules()
A
47 8 34
generateStyleStringFromDeclarationsArrays()
S
51 7 25
splitCssAndMediaQuery()
S
48 5 33
removeUnprocessableTags()
S
60 6 14
getNodesToExclude()
S
57 5 17
removeInvisibleNodes()
S
62 5 11
parseCssDeclarationsBlock()
S
56 4 18
copyUninlineableCssToStyleNode()
S
57 4 17
getCssSelectorPrecedence()
S
56 4 16
existsMatchForCssSelector()
S
62 4 11
sortBySelectorPrecedence()
S
66 4 7
getCssRuleMatches()
S
58 3 15
removeImportantAnnotationFromNodeInlineStyle()
S
59 3 14
getCssFromAllStyleNodes()
S
62 3 12
normalizeStyleAttributesOfAllNodes()
S
67 3 8
normalizeStyleAttributes()
S
62 2 11
copyInlineableCssToStyleAttribute()
S
65 2 9
fillStyleAttributesWithMergedStyles()
S
67 2 7
getCssSelectorConverter()
S
71 2 6
postProcess()
S
75 2 5
removeAllowedMediaType()
S
73 2 5
removeImportantAnnotationFromAllInlineStyles()
S
74 2 5
removeUnprocessableHtmlTag()
S
70 2 6
removeExcludedSelector()
S
73 2 5
getHeadElement()
S
80 1 3
addStyleElementToDocument()
S
66 1 8
getAllNodesWithStyleAttribute()
S
80 1 3
disableInlineStyleAttributesParsing()
S
81 1 3
disableStyleBlocksParsing()
S
81 1 3
disableInvisibleNodeRemoval()
S
81 1 3
purgeVisitedNodes()
S
77 1 4
clearAllCaches()
S
69 1 8
addUnprocessableHtmlTag()
S
80 1 3
removeUnmatchablePseudoComponents()
S
73 1 4
attributeValueIsImportant()
S
77 1 3
generateStyleStringFromSingleDeclarationsArray()
S
79 1 3
addAllowedMediaType()
S
80 1 3
addExcludedSelector()
S
80 1 3
setDebug()
S
81 1 3